import request from "@/utils/request";

// 首页能耗统计 错误码 20098
export function getEnergyConsumption(params) {
  return request({
    url: "/home/analysis/getHomeEnergyStatistics",
    method: "get",
    params,
  });
}

// 获取指标详情 错误码 200981
export function getTargetDept(params) {
  return request({
    url: "/home/analysis/getTargetDept?type=" + params,
    method: "get",
  });
}

// 单位用能详情 错误码 200982
export function getDeptStatisticsDetail(params) {
  return request({
    url: "/home/analysis/getDeptStatisticsDetail?deptId=" + params,
    method: "get",
  });
}

// 根据部门获取电水耗信息  错误码 200983
export function getmsgByDept(params) {
  return request({
    url: "/screen/digital/getEnergyByDept?deptId=" + params,
    method: "get",
  });
}
